package com.itkeke.ssm.controller.userController;

import com.itkeke.ssm.pojo.User;
import com.itkeke.ssm.service.UserService.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/index")
    public void index(){
        System.out.println("my name is liukeke !");
    }

    @RequestMapping("/find")
    public void findById(){
        User user = userService.find(1);
        System.out.println(user);
    }
}
